<?php
// 登陆喽
$this->_extends('_layouts/login_layout');

$this->_block('contents');
if( $isLogin == 100 ): ?>
	<p align="center" style="font-size:14px;color:blue;"> 欢迎 <b><?php echo $user_id; ?></b> 来到K秀首页!</p>
	- <a href="<?php echo url('login/out'); ?>" >登出</a>
<?php else: ?>
<div id="logPlace">
	<form onsubmit='javascript:return validate();' method="post" name="myform">
		<table width="400" border="0" cellpadding="0" cellspacing="1" bgcolor="#E3E3E3">

			<tr>
				<td height="156" align="center" valign="top" bgcolor="#FFFFFF">
					<table width="95%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="10%" height="48"><img src="images/ico04.gif" width="33" height="32" /></td>
							<td width="90%" align="left"><span class="blue14">K秀用户登录</span></td>
						</tr>
					</table>

					<table width="80%" height="105" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td width="20%">登录帐号：</td>
							<td width="54%" align="left">
								<input name="user" type="text" id="user" tabindex="1" maxlength="10" onpaste="return false" oncopy="return false" oncut="return false" autocomplete="off" 
								onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" />
							</td>
							<td width="26%" align="left"><span class="red12">*</span></td>
						</tr>
						<tr>
							<td>登录密码：</td>

							<td align="left"><input name="pswd" type="password" id="pswd" tabindex="2" maxlength="16" onpaste="return false" oncopy="return false" oncut="return false" autocomplete="off"></td>
							<td align="left"><span class="red12">*</span>&nbsp;<span class="font-14"><a href="javascript:void(0);" style="color:gray;">&gt;找回密码</a></span></td>
						</tr>
						<tr>
							<td height="23"></td>
							<td align="left">登录校验码：<a href="javascript:fresh_code();"><img src="checkcode.inc.php" alt="刷新" name="checkcode" border="0" id="checkcode"></a></td>
							<td align="left"></td>

						</tr>
						<tr>
							<td>输入校验：</td>
							<td align="left"><input name="code" type="text" id="code" tabindex="3" maxlength="6" onpaste="return false" oncopy="return false" oncut="return false" autocomplete="off"></td>
							<td align="left" class="red12">*</td>
						</tr>
					</table>
				</td>

			</tr>
		</table>
		<table width="37%" border="0" cellspacing="0" cellpadding="0">
			<tr>
			  <td height="47" align="center"><input type="submit" name="btnSubmit" id="btnSubmit" value="确定" /></td>
			  <td height="47" align="left"><input type="reset" name="btnReset" id="btnReset" value="重置" /></td>
			</tr>
		</table>
		<input type="hidden" name="url" value="<?php echo $redirect; ?>" />

		</form>
</div>

<?php endif; ?>
<?php $this->_endblock('contents'); ?>